<template>
	<!-- 头部导航栏组件示例 -->
	<view>
		<!-- 可以自己手动切换注释查看效果 -->

		<!-- 默认导航栏 -->
		<c-navBar title="默认导航栏"></c-navBar>

		<!-- 不需要左侧返回按钮 -->
		<!-- <c-navBar title="隐藏左侧按钮" isBack></c-navBar> -->

		<!-- 透视背景 脱离文件流 -->
		<!-- <c-navBar title="透视背景" isBack isSeat></c-navBar> -->
		
		<!-- 如需要搜索框等自定义导航 使用插槽 -->
		<!-- <c-navBar custom>
			<view class="nav">
				<view class="search">
					<view class="disb">
						<image src="/static/tabbar/seach.png" mode=""></image>
					</view>
					<view class="search-box">
						搜索
					</view>
				</view>
			</view>
		</c-navBar> -->
		
		<view class="main">
			<!-- <image class="ma-img" src="../../static/common/logo.png" mode=""></image> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		}
	}
</script>

<style lang="scss" scoped>
	.nav {
		display: flex;
		align-items: center;
		height: 100%;
		padding-left: 20rpx;
		.search {
			width: 500rpx;
			height: 56rpx;
			background: #fff;
			border-radius: 32px;
			color: #666666;
			font-size: 24rpx;
			font-weight: 500;
			padding: 0 4rpx 0 24rpx;
			border: 1px solid #ED1010;
			display: flex;
			align-items: center;
			justify-content: space-between;

			image {
				width: 24rpx;
				height: 24rpx;
				margin-right: 12rpx;
			}

			.search-box {
				width: 110rpx;
				height: 48rpx;
				background: #ED1010;
				border-radius: 27rpx;
				color: #fff;
				font-size: 28rpx;
				font-weight: 700;
				line-height: 48rpx;
				text-align: center;
			}
		}
	}
	
	.main {
		background: dodgerblue;
		width: 750rpx;
		height: 2000rpx;
	
		image {
			width: 375rpx;
		}
	}
</style>